package cn.zcx;

import java.util.ArrayList;
import java.util.List;

/**
 * description:
 * author:zcx
 * lenovo
 * 时间：2022.02.11.14.34
 */
public class Book {
   String bookname;
   String autor;
   int price;

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getAutor() {
        return autor;
    }

    public void setAutor(String autor) {
        this.autor = autor;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public Book(String bookname, String autor, int price) {
        this.bookname = bookname;
        this.autor = autor;
        this.price = price;
    }

    public Book() {
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookname='" + bookname + '\'' +
                ", autor='" + autor + '\'' +
                ", price=" + price +
                '}';
    }
}
